package com.bjsxt.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.List;

/**
 * description:
 * 角色权限更新实体对象
 *
 * @author ALIENWARE <br />
 * @date 2021/7/10
 */
@ApiModel(value = "com-bjsxt-dto-RolePrivilegesParam/角色权限更新实体对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RolePrivilegesParam {

    /**
     * 角色 id
     */
    @NotNull
    @ApiModelProperty(value = "角色 id")
    private Long roleId;

    /**
     * 权限 id 集合
     */
    @ApiModelProperty(value = "权限 id 集合")
    private List<Long> privilegeIds = Collections.EMPTY_LIST;
}
